package util

import (
	"encoding/json"
)

// Struct2String 以json格式显示 struct
func Struct2String(v interface{}) string {
	jsonIndent, _ := json.MarshalIndent(v, "", "  ")
	return string(jsonIndent)
}
